// RUN_PIPELINE_TILL: FRONTEND
// WITH_STDLIB
package test

// val x1: 3
<!DEBUG_INFO_CONSTANT_VALUE("3")!>val x1 = 1 + 2<!>

// val x2: 3.toLong()
<!DEBUG_INFO_CONSTANT_VALUE("3.toLong()")!>val x2 = 1 + 2L<!>

// val x3: 3
<!DEBUG_INFO_CONSTANT_VALUE("3")!>val x3 = 1.toShort() + 2.toByte()<!>

// val x4: 3
<!DEBUG_INFO_CONSTANT_VALUE("3")!>val x4 = 1.toByte() + 2.toByte()<!>

// val x5: 4656
<!DEBUG_INFO_CONSTANT_VALUE("4656")!>val x5 = 0x1234 and 0x5678<!>

// Strange result, see KT-13517
// val x6: null
<!DEBUG_INFO_CONSTANT_VALUE("null")!>val x6 = 0x1234 and <!CONSTANT_EXPECTED_TYPE_MISMATCH!>0x5678L<!><!>

// val x7: 4656.toLong()
<!DEBUG_INFO_CONSTANT_VALUE("4656.toLong()")!>val x7 = 0x1234L and 0x5678<!>

// val x8: -123457
<!DEBUG_INFO_CONSTANT_VALUE("-123457")!>val x8 = (-123_456_789_321).floorDiv(1_000_000)<!>

// val x9: 79
<!DEBUG_INFO_CONSTANT_VALUE("79")!>val x9 = (-123_456_789_321).mod(100)<!>

/* GENERATED_FIR_TAGS: additiveExpression, integerLiteral, propertyDeclaration */
